< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/01030200.xhp

(section: basiceditor) (bookmark: bm_id3148647)
saving;Basic code
loading;Basic code
Basic editor
navigating;in Basic projects
long lines;in Basic editor
lines of text;in Basic editor
continuation;long lines in editor

保存; Basic コード
読み込み; Basic コード
Basic エディタ
ナビゲーション; Basic プロジェクト内
長い行; Basic エディタ内
テキスト行;Basic エディタ内
継続行;エディタの長い行

The Basic Editor
Basic エディタ(hd_id3147264.1)

(/section: basiceditor)

The Basic Editor provides the standard editing functions you are familiar with when working in a text document. It supports the functions of the Edit menu (Cut, Delete, Paste), the ability to select text with the Shift key, as well as cursor positioning functions (for example, moving from word to word with (in case of MAC)Command(/in case of MAC)(in other case)Ctrl(/in other case) and the arrow keys).
Basic エディタには、文書ドキュメントに使用される、標準的な編集機能が用意されています。標準的な 編集 メニューの機能 (切り取り、削除、貼り付け) を始め、Shift キーを使ったテキスト選択や、カーソル移動 (たとえば ( (in case of MAC)Command(/in case of MAC)(in other case)Ctrl(/in other case)) + (矢印) キーによる単語の移動) などの各種機能が利用できます。(par_id3145069.3)

Long lines can be split into several parts by inserting a space and an underline character _ as the last two characters of a line. This connects the line with the following line to one logical line. (If "Option Compatible" is used in the same Basic module, the line continuation feature is also valid for comment lines.)
長い行は、行の最後の 2 文字としてスペースとアンダーライン文字 _ を挿入することにより、いくつかの部分に分割することができます。 これにより、その行は 1 つの論理線に対する次の行と結合されます。 (同じ Basic モジュールで "Option Compatible" が使用されている場合、継続行の機能はコメント行でも有効です。)(par_id3154686.31)

If you press the Run BASIC icon on the Macro bar, program execution starts at the first line of the Basic editor. The program executes the first Sub or Function and then program execution stops. The "Sub Main" does not take precedence on program execution.
マクロ バーの Basic プログラムの実行 アイコンを押すと、Basic エディタの最初の行でプログラムの実行が開始されます。プログラムは最初の Sub または Function を実行し、その後、プログラムの実行が停止します。「Sub Main」は、プログラムの実行では優先されません。(par_id3151042.32)

Tip Icon ヒント Insert your Basic code between the Sub Main and End Sub lines that you see when you first open the IDE. Alternatively, delete all lines and then enter your own Basic code.
最初に IDE を開くときに表示される Sub Main 行と End Sub 行の間に Basic のコードを挿入します。あるいは、すべての行を削除して、独自の Basic コードを入力します。(par_id59816.)

Navigating in a Project
プロジェクトの操作法(hd_id3125863.4)

The Library List
ライブラリリスト(hd_id3145785.6)

Select a library from the Library list at the left of the toolbar to load the library in the editor. The first module of the selected library will be displayed.
ツールバーの左側にある ライブラリ リストで、エディタに読み込むライブラリを選択します。選択したライブラリの最初のモジュールが表示されます。(par_id3146120.7)

The Object Catalog
オブジェクトカタログ(hd_id3153190.8)

(embed text/sbasic/shared/01020200.xhp#object_catalog : linkinfo)

Click the Object Catalog icon Icon in the Macro toolbar to display the object catalog.
マクロツールバーのアイコン オブジェクトカタログ をクリックすると、オブジェクトカタログが表示されます。(par_id3147346.78)

The dialog shows a list of all existing objects in a hierarchical representation. Double-clicking a list entry opens its subordinate objects.
このダイアログには、存在するすべてのオブジェクトが階層表示されます。リスト中の項目をダブルクリックすると、その下層にあるオブジェクトが表示されます。(par_id3155114.79)

To display a certain module in the Editor or to position the cursor in a selected SUB or FUNCTION, select the corresponding entry and click the Show icon Icon.
項目を選択してアイコン 表示 Icon をクリックすると、エディターに該当モジュールを表示させたり、該当する SUB や FUNCTION の位置にカーソルを移動できます。(par_id3150786.83)

Click the (X) icon in the title bar to close the object catalog.
オブジェクトカタログを閉じるには、タイトルバーにある×印のアイコンをクリックします。(par_id3153266.81)

(/embed text/sbasic/shared/01020200.xhp#object_catalog)

Saving and Loading Basic Source Code
Basic ソースコードの読み込みと保存(hd_id3148647.15)

You can save Basic code in a text file for saving and importing in other programming systems.
Basic プログラムコードをテキスト形式で保存し、それを他のプログラミングシステムでインポートしたり保存したりすることができます。(par_id3154320.16)

Warning Icon 警告マーク You cannot save Basic dialogs to a text file.
ただし、Basic ダイアログをテキストファイルに保存することはできません。(par_id3149959.25)

Saving Source Code to a Text File
ソースコードをテキストファイルで保存する(hd_id3149403.17)

  1. Select the module that you want to export as text from the object catalog.
    オブジェクトカタログで、テキストファイルに保存するモジュールを選択します。(par_id3150327.18)

  2. Click the Save Source As icon in the Macro toolbar.
    マクロツールバーにあるアイコン ソーステキストに名前を付けて保存... をクリックします。(par_id3150752.19)

  3. Select a file name and click OK to save the file.
    ファイル名を指定して、保存 をクリックします。(par_id3154754.20)

Loading Source Code From a Text File
テキスト形式の Basic プログラムコードを読み込む(hd_id3159264.21)

  1. Select the module where you want to import the source code from the object catalog.
    オブジェクトカタログで、テキストファイルをインポートするモジュールを選択します。(par_id3147343.22)

  2. Position the cursor where you want to insert the program code.
    プログラムコードを挿入する位置に、カーソルを移動します。(par_id3145230.23)

  3. Click the Insert Source Text icon in the Macro toolbar.
    マクロツールバーにあるアイコン ソーステキストの挿入 をクリックします。(par_id3149565.24)

  4. Select the text file containing the source code and click OK.
    読み込むプログラムコードが記述されたテキストファイルを選択して、開く をクリックします。(par_id3154020.33)

Basic IDE
Basic IDE(par_id3153198.29)

(embed text/sbasic/shared/01020200.xhp#01020200 : linkinfo)

Using the Object Catalog
オブジェクトの使用法(hd_id3145645.1)

(/embed text/sbasic/shared/01020200.xhp#01020200)


< Prev / Next >